<%@page language="java" pageEncoding="UTF-8" contentType="text/html;charset=utf-8"%>
<%@include file="/includes/taglibs.jsp"%>
<%@page import="com.feib.soeasy.util.UserUtil"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title><%=UserUtil.getCurrentMenuItemName() %></title>
	<script type="text/javascript" src="<c:url value='/scripts/jquery/jquery.bgiframe-2.1.2.js'/>"></script>
	
	<script type="text/javascript"><!--
		
	$(document).ready(function() {
		
		$('#doQueryBtn').click(function() {
			var errMsg = "";
			var qryDateFrom = $('#qryDateFrom').val();
			var qryDateTo = $('#qryDateTo').val();
			var qryDateType = $('#qryDateType').val();
			var virtualAccount = $('#qryPayment\\.virtualAccount').val();
			var paymentStatus = $('#qryPayment\\.paymentStatus').val();
		  
			
			var formatDefinitionPk = $('#qryFormatDefinition\\.formatDefinitionPk').val();
			var payerName = $('#qryPayment\\.payerName').val();
			var payerId = $('#qryPayment\\.payerId').val();
			var groupType = $('#qryPayment\\.group\\.groupType').val();
			
			<%if ( UserUtil.isBankGroup()){ %>
			var groupNo = $('#qryPayment\\.group\\.groupNo').val();
			var groupNo = $('#qryPayment\\.group\\.groupNo').val();
			if (null == groupNo || 0 == groupNo.length){
				errMsg = errMsg + "業者代號 是必要欄位<br/>";
			}
			else if (12 != groupNo.length){
				errMsg = errMsg + "業者代號 長度為12碼<br/>";
			}
			else
				$('#hidden\\.qryPayment\\.group\\.groupNo').val(groupNo);
			<%}%>
			
			if (null == formatDefinitionPk || 0 == formatDefinitionPk.length){
				errMsg = errMsg + "收款名稱 是必要欄位<br/>";
			}
			
			if (null == qryDateFrom || 0 == qryDateFrom.length){
				errMsg = errMsg + "起 是必要欄位<br/>";
			}
			
			if (null == qryDateTo || 0 == qryDateTo.length){
				errMsg = errMsg + "迄 是必要欄位<br/>";
			}
						
				if (null == payerId || 0 == payerId.length){
					errMsg = errMsg + "客戶編號是必要欄位<br/>";

			}
			if (0 != errMsg.length){
				$("#ajaxErrorMessageDiv").html(errMsg);
				$("#ajaxErrorMessageDiv" ).dialog({  
					title:'請修正下列錯誤' 
					,width: 300
					, resizable: false
					, modal: true
					, buttons: {
						Ok: function() {
							$( this ).dialog( "close" );
						}
					}
				});
				return false;
			}
			
			
			$('#hidden\\.qryDateFrom').val(qryDateFrom);
			$('#hidden\\.qryDateTo').val(qryDateTo);
			$('#hidden\\.qryDateType').val(qryDateType);
			
			$('#hidden\\.qryPayment\\.virtualAccount').val(virtualAccount);
			$('#hidden\\.qryPayment\\.paymentStatus').val(paymentStatus);
			$('#hidden\\.qryPayment\\.paymentPk').val('');
			
			$('#hidden\\.qryPayment\\.payerName').val(payerName);
			if(groupType == '2'){
				
				$('#hidden\\.qryPayment\\.studentId').val(payerId);

			}else{
				$('#hidden\\.qryPayment\\.payerId').val(payerId);		
			}
			$('#hidden\\.qryFormatDefinition\\.formatDefinitionPk').val(formatDefinitionPk);
			doQueryAction(1);
		});
		
		var dates = $( "#qryDateFrom, #qryDateTo" ).datepicker({
			defaultDate: "-1m",
			changeMonth: true,
			changeYear: true,
			numberOfMonths: 1,
			dateFormat: 'yy/mm/dd',
			showButtonPanel: true,
			showOn: "both",
			buttonImage: "<c:url value='styles/default/images/calendar.gif'/>",
			buttonImageOnly: true,
			onSelect: function( selectedDate ) {
				var option = this.id == "qryDateFrom" ? "minDate" : "maxDate",
					instance = $( this ).data( "datepicker" );
					date = $.datepicker.parseDate(
						instance.settings.dateFormat ||
						$.datepicker._defaults.dateFormat,
						selectedDate, instance.settings );
				dates.not( this ).datepicker( "option", option, date );
			}
		});
		
		
		
<%if ( UserUtil.isBankGroup()){ %>
		$('#findGroupNoImg').click(function() {

			var groupNo = $('#qryPayment\\.group\\.groupNo').val();
			
			if (null != groupNo && 0 != groupNo.length){
				var tmpGroupNo = parseInt(groupNo,10);
				if(! isNaN(tmpGroupNo)){
					$('#hidden\\.qryGroup\\.groupNo').val(groupNo);
					$('#hidden\\.qryGroup\\.groupName').val('');
					$('#qryGroup\\.groupNo').val(groupNo);
					$('#qryGroup\\.groupName').val('');
				}
				else{
					$('#hidden\\.qryGroup\\.groupNo').val('');
					$('#hidden\\.qryGroup\\.groupName').val(groupNo);
					$('#qryGroup\\.groupNo').val('');
					$('#qryGroup\\.groupName').val(groupNo);
					$("#queryGroupResultDiv").html('');
				}
				
				$("#findGroupDiv" ).dialog({  
					title:'帳單業者查詢' 
					, width: 600
					, resizable: true
					, modal: true
				});
				
				$('#doAjaxQueryGroupsBtn').click();
			}
			else{
				$('#hidden\\.qryGroup\\.groupNo').val('');
				$('#hidden\\.qryGroup\\.groupName').val('');
				$('#qryGroup\\.groupNo').val('');
				$('#qryGroup\\.groupName').val('');
				$("#queryGroupResultDiv").html('');
				$("#findGroupDiv" ).dialog({  
					title:'帳單業者查詢' 
					, width: 600
					, resizable: true
					, modal: true
				});
			}
			
			
		});
		
		$('#doAjaxQueryGroupsBtn').click(function() {
			var groupNo = $('#qryGroup\\.groupNo').val();
			var groupName = $('#qryGroup\\.groupName').val();
			$("#queryGroupResultDiv").html('');

			$('#hidden\\.qryGroup\\.groupNo').val(groupNo);
			$('#hidden\\.qryGroup\\.groupName').val(groupName);
			doQueryGroupAction(1);
			
		});
		
		$('#doAjaxCloseGroupsBtn').click(function() {
			$("#findGroupDiv" ).dialog( "close" );
		});
		
		$('#qryPayment\\.group\\.groupNo').change(function() {
			var groupNo = $('#qryPayment\\.group\\.groupNo').val();
			doGroupNoChanged(groupNo);
		});
		
<%}%>

	});
	
	function doDownloadExcelFileAction()
	{
		$('#method').attr('name','doAjaxDownloadExcelFile');
		
		
		$.download("<c:url value='/ajax/Soez5007.action'/>",$("#queryPaymentHiddenForm").serialize() );
		
		
	}
	
	function doQueryAction(pageNumber)
	{
		$('#method').attr('name','doAjaxQuery');
		$('#hidden\\.queryResult\\.pageNumber').val(pageNumber);
		$("#queryResultDiv").fadeTo("slow", 0.1);
		
		waitingDialog({});
		$.ajax({url : "<c:url value='/ajax/Soez5007.action'/>",
			async : true,
			type : 'POST',
			data : $("#queryPaymentHiddenForm").serialize(),
			dataType : 'html',
			success : function(data, textStatus, XMLHttpRequest){
					$("#queryResultDiv").html(data);					
				},
			error : function(XMLHttpRequest, textStatus, errorThrown){
				$("#ajaxErrorMessageDiv").html('系統發生錯誤，請聯絡管理員');
				$("#ajaxErrorMessageDiv" ).dialog({  
					title:'系統錯誤' 
					,width: 600
					, resizable: false
					, modal: true
					, buttons: {
						Ok: function() {
							$( this ).dialog( "close" );
						}
					}
				});
				},
			complete: function(XMLHttpRequest, textStatus){
				closeWaitingDialog();
				$("#queryResultDiv").fadeTo("slow", 1);
			}
		});
	}
	
	function doQueryPaymentsAction(paymentPk)
	{
		$('#hidden\\.qryPayment\\.paymentPk').val(paymentPk);
		$('#method').attr('name','doAjaxQueryDetail');
		
		waitingDialog({});
		$.ajax({url : "<c:url value='/ajax/Soez5007.action'/>",
			async : true,
			type : 'POST',
			data : $("#queryPaymentHiddenForm").serialize(),
			dataType : 'html',
			success : function(data, textStatus, XMLHttpRequest){
				$("#paymentsItemDiv").html(data);
				},
			error : function(XMLHttpRequest, textStatus, errorThrown){
					$("#ajaxErrorMessageDiv").html('系統發生錯誤，請聯絡管理員');
					$("#ajaxErrorMessageDiv" ).dialog({  
						title:'系統錯誤' 
						,width: 600
						, resizable: false
						, modal: true
						, buttons: {
							Ok: function() {
								$( this ).dialog( "close" );
							}
						}
					});
				},
			complete: function(XMLHttpRequest, textStatus){closeWaitingDialog();}
		});
		

	}


	function doQueryDetailAction(uid)//修改送出查詢單筆資料
	{   
		$('#hidden\\.paymentPk').val(uid);
		var qryDateFrom = $('#qryDateFrom').val();
		var qryDateTo = $('#qryDateTo').val();

		$('#hiddenDetail\\.qryDateFrom').val(qryDateFrom);
		$('#hiddenDetail\\.qryDateTo').val(qryDateTo);
		
		
		waitingDialog({});
		$.ajax({url : "<c:url value='/ajax/Soez5007.action'/>",
			async : true,
			type : 'POST',
			data : $("#queryDetailHiddenForm").serialize(),
			dataType : 'html',
			success : function(data, textStatus, XMLHttpRequest){
				$("#detailDiv").html(data);
				$( "#detailDiv" ).dialog({  title:'<%=UserUtil.getCurrentMenuItemName() %>' ,width: 600, resizable: false, modal: true  });
				},
			error : function(XMLHttpRequest, textStatus, errorThrown){
					$("#ajaxErrorMessageDiv").html('系統發生錯誤，請聯絡管理員');
					$("#ajaxErrorMessageDiv" ).dialog({  
						title:'系統錯誤' 
						,width: 600
						, resizable: false
						, modal: true
						, buttons: {
							Ok: function() {
								$( this ).dialog( "close" );
							}
						}
					});
				},
			complete: function(XMLHttpRequest, textStatus){closeWaitingDialog();}
		});
	}
	

	function divPrint(divId)
	{
		var content_vlue = document.getElementById(divId).innerHTML;
		
		if (null == content_vlue || content_vlue.length == 0)
			return;
		
		var width  = 800;
		var height = 600;
		if (window.screen) {
			width = window.screen.availWidth;
			height = window.screen.availHeight;
		}
		
		var left   = (screen.width  - width)/2;
		var top    = (screen.height - height)/2;
		var params = 'width='+width+', height='+height;
		params += ', top='+top+', left='+left;
		params += ', directories=no';
		params += ', location=no';
		params += ', menubar=no';
		params += ', resizable=no';
		params += ', scrollbars=yes';
		params += ', status=no';
		params += ', toolbar=yes';
		params += ', fullscreen=no';
		
		
		var docprint=window.open("","", params);
		docprint.document.open();
		docprint.document.write('<html><head><title>遠東商銀 全方位企業收款服務</title>');
		docprint.document.write('<link rel="stylesheet" type="text/css" media="all" href="<c:url value="/styles/default/style.css"/>" />');
		docprint.document.write('<link rel="stylesheet" type="text/css" media="all" href="<c:url value="/styles/default/jquery-ui-1.8.6.custom.css"/>" />');
		//docprint.document.write('<script type="text/javascript" src="<c:url value="/scripts/jquery/jquery-1.4.2.js"/>"/>');
		//docprint.document.write('<script type="text/javascript" src="<c:url value="/scripts/jquery/jquery-ui-1.8.6.custom.min.js"/>"/>');
		//docprint.document.write('<script type="text/javascript" src="<c:url value="/scripts/jquery/jquery.ui.datepicker-zh-TW.js"/>"/>');
		//docprint.document.write('<script type="text/javascript" src="<c:url value="/scripts/loadingScreen.js"/>"/>');
		//docprint.document.write('<script type="text/javascript" src="<c:url value="/scripts/public.js"/>"/>');
		docprint.document.write('</head><body onLoad="self.print()"><center>');
		docprint.document.write(content_vlue);
		docprint.document.write('</center></body></html>');
		docprint.document.close();
		docprint.focus(); 
	}

	jQuery.download = function(url, data, method){
		//url and data options required
		//alert(url);
		//alert(data);
		if( url && data ){			
			//data can be string of parameters or array/object
			data = typeof data == 'string' ? data : jQuery.param(data);
			//split params into form inputs
			//send request			
			if (null == $('#myIFrm')){				
				jQuery('<iframe id="myIFrm" src="' + url + '?'+ data +'" style="display:none; visibility: hidden;"></iframe>').appendTo('body');
			}
			else {				
				$('#myIFrm').attr("src", url + '?'+ data );
			}
			
			
		};
	};
	
	function doDownloadExcelMaster()
	{
		$('#method').attr('name','doMasterDownloadExcelFile');
		$.download("<c:url value='/ajax/Soez5007.action'/>",$("#queryPaymentHiddenForm").serialize() );
		
	}
	
<%if ( UserUtil.isBankGroup()){ %>

	function doGroupNoChanged(groupNo)
	{
		var doQuery = false;
		if (null != groupNo && 12 == groupNo.length){
			var tmpGroupNo = parseInt(groupNo,10);
			if (!isNaN(tmpGroupNo))
				doQuery = true;
		}
		
		if (doQuery){

			$("#hidden\\.qryGroup\\.groupNo1").val(groupNo);
		
			waitingDialog({});
			$.ajax({url : "<c:url value='/ajax/Soez5007.action'/>",
				async : true,
				type : 'POST',
				data : $("#groupNochangedHiddenFrom").serialize(),
				dataType : 'html',
				success : function(data, textStatus, XMLHttpRequest){
					
					$('#qryFormatDefinition\\.formatDefinitionPk').find('option').remove().end().append(data);
					$('#qryFormatDefinition\\.formatDefinitionPk').val('');
					},
				error : function(XMLHttpRequest, textStatus, errorThrown){
					$("#ajaxErrorMessageDiv").html('系統發生錯誤，請聯絡管理員');
					$("#ajaxErrorMessageDiv" ).dialog({  
						title:'系統錯誤' 
						,width: 600
						, resizable: false
						, modal: true
						, buttons: {
							Ok: function() {
								$( this ).dialog( "close" );
							}
						}
					});
					},
				complete: function(XMLHttpRequest, textStatus){closeWaitingDialog();}
			});
		}
		else{
			$("#hidden\\.qryGroup\\.groupName\\.span").html('');
			$('#qryFormatDefinition\\.formatDefinitionPk').find('option').remove().end().append('<option value="">-- 請選擇 --</option>').val('');
		}
		
	}
	
	function doQueryGroupAction(pageNumber)
	{
		$('#hidden\\.queryGroupResult\\.pageNumber').val(pageNumber);
		$("#queryGroupResultDiv").fadeTo("slow", 0.1);

		waitingDialog({});
		$.ajax({url : "<c:url value='/ajax/Soez5007.action'/>",
			async : true,
			type : 'POST',
			data : $("#queryGroupHiddenFrom").serialize(),
			dataType : 'html',
			success : function(data, textStatus, XMLHttpRequest){
					$("#queryGroupResultDiv").html(data);
				},
			error : function(XMLHttpRequest, textStatus, errorThrown){
				$("#ajaxErrorMessageDiv").html('系統發生錯誤，請聯絡管理員');
				$("#ajaxErrorMessageDiv" ).dialog({  
					title:'系統錯誤' 
					,width: 600
					, resizable: false
					, modal: true
					, buttons: {
						Ok: function() {
							$( this ).dialog( "close" );
						}
					}
				});
				},
			complete: function(XMLHttpRequest, textStatus){
				if ($.browser.msie && /msie 6\.0/i.test(navigator.userAgent)){
					$("#findGroupDiv" ).dialog( "close" );
					$("#findGroupDiv" ).dialog( "open" );					
				}
				closeWaitingDialog();
				$("#queryGroupResultDiv").fadeTo("slow", 1);
			}
		});
		
		
	}
<%}%>

	
	//
	--></script>
</head>
<body>
<div id="mainAreaCT">
		<jsp:include page="/includes/path.jsp"/>
		<jsp:include page="/includes/subMenu.jsp"/>
		
	<div id="qryPaymentFormDiv">
		<stripes:form id="queryPaymentFrom" beanclass="com.feib.soeasy.action.Soez5007ActionBean" 
			method="post" onsubmit="javascript: return flase;">	
		<table id="queryForm">
			<%if ( UserUtil.isBankGroup()){ %>
			<tr>
				<th>業者代號<span id="mustKeyInStar">**</span></th>
				<td colspan="3">
					<div id="findGroupNoImg"><a href="javascript: void(0)" class="btnZoom">查詢</a></div>
					<stripes:text id="qryPayment.group.groupNo" name="qryPayment.group.groupNo" size="12" maxlength="12" />
					<span id="hidden.qryGroup.groupName.span"><c:out value="${actionBean.qryGroup.groupName }"/></span>
				
				</td>
			</tr>
			<%} else {%>
			<stripes:hidden id="qryPayment.group.groupNo" name="qryPayment.group.groupNo" />
			<%} %>
			<tr>
				<th>收款名稱<span id="mustKeyInStar">**</span></th>
				<td>
					<stripes:select id="qryFormatDefinition.formatDefinitionPk" name="qryFormatDefinition.formatDefinitionPk" >
						<stripes:options-collection collection="${actionBean.formatDefinitionoOptions }" label="label" value="value"/>
						<stripes:option value="">-- 請選擇 --</stripes:option>
					</stripes:select>
				</td>
				<th>繳款日期<span id="mustKeyInStar">**</span></th>
				<td colspan="3">					
					<stripes:text id="qryDateFrom" name="qryDateFrom" size="10" maxlength="10" formatPattern="yyyy/MM/dd" readonly="true"/>
					～
					<stripes:text id="qryDateTo" name="qryDateTo" size="10" maxlength="10" formatPattern="yyyy/MM/dd" readonly="true"/>
				</td>
			</tr>
			<tr>
				<th>客戶姓名</th>
				<td>
					<stripes:text id="qryPayment.payerName" name="qryPayment.payerName" size="30" maxlength="68"/>
				</td>
				<th>客戶編號<span id="mustKeyInStar">**</span></th>
				<td>
			
					<stripes:text id="qryPayment.payerId" name="qryPayment.payerId" size="20" maxlength="20"/>
				</td>
			</tr>
			<tr>
				<th>繳款帳號</th>
				<td colspan="4">
					<stripes:text id="qryPayment.virtualAccount" name="qryPayment.virtualAccount" size="16" maxlength="16"/>
				</td>
			</tr>
			<tr>
				<td colspan="4" class="queryFunction">
					<stripes:button id="doQueryBtn" name="doQueryBtn" value="查詢" class="formBtn"/>
				</td>
			</tr>
		</table>
		</stripes:form>
	</div><!-- end #uploadFileFormDiv -->
	
	
	<!-- 分戶繳費查詢  -->
	<div id="queryResultDiv" style="text-align: center; display: none;"></div>
	
	<div id="queryPaymentHiddenFormDiv" style="display: none;">
		<stripes:form id="queryPaymentHiddenForm" beanclass="com.feib.soeasy.action.Soez5007ActionBean" 
			method="post" onsubmit="javascript: return false;">
			<%if ( UserUtil.isBankGroup()){ %>UserUtil.isSchoolGroup()
			<stripes:hidden id="hidden.qryPayment.group.groupNo" name="qryPayment.group.groupNo"/>
			<%} else {%>
			<input type="hidden" id="hidden.qryPayment.group.groupNo" name="qryPayment.group.groupNo" value="<%out.print(UserUtil.getUserGroup().getGroupNo());%>"/>
			<%} %>
			<stripes:hidden id="hidden.qryPayment.paymentStatus" name="qryPayment.paymentStatus" />
			<stripes:hidden id="hidden.qryPayment.virtualAccount" name="qryPayment.virtualAccount"/>
			<stripes:hidden id="hidden.qryPayment.paymentPk" name="qryPayment.paymentPk"/>
			<stripes:hidden id="hidden.qryDateFrom" name="qryDateFrom" formatPattern="yyyy/MM/dd"/>
			<stripes:hidden id="hidden.qryDateTo" name="qryDateTo" formatPattern="yyyy/MM/dd"/>
			<stripes:hidden id="hidden.qryDateType" name="qryDateType"/>
			<stripes:hidden id="hidden.qryFormatDefinition.formatDefinitionPk" name="qryFormatDefinition.formatDefinitionPk"/>
			<stripes:hidden id="hidden.qryPayment.payerName" name="qryPayment.payerName"/>
			<stripes:hidden id="hidden.qryPayment.payerId" name="qryPayment.payerId"/>
			<stripes:hidden id="hidden.qryPayment.studentId" name="qryPayment.studentId"/>
			<stripes:hidden id="hidden.queryResult.pageNumber" name="queryResult.pageNumber" />
			<stripes:hidden id="qryPayment.group.groupType" name="qryPayment.group.groupType"/>
			
			<input type="hidden" id="method" name="doAjaxQuery"/>
		</stripes:form>
	</div>
	
	<div id="paymentsItemDiv" style="display: none;"></div>

	<!-- 分戶明細查詢 -->
	<div id="detailDiv" style="display: none;"></div>
	<div id="queryDetailHiddenFormDiv" style="display: none; ">
		<stripes:form id="queryDetailHiddenForm" beanclass="com.feib.soeasy.action.Soez5007ActionBean" 
			method="post" onsubmit="javascript: return false;">			
			<stripes:hidden id="hidden.paymentPk" name="payment.paymentPk"/>
			<stripes:hidden id="hiddenDetail.qryDateFrom" name="qryDateFrom" formatPattern="yyyy/MM/dd"/>
			<stripes:hidden id="hiddenDetail.qryDateTo" name="qryDateTo" formatPattern="yyyy/MM/dd"/>

			<input type="hidden" id="method2" name="doAjaxQueryDetail"/>
		</stripes:form>
	</div>
	
	
	<%if ( UserUtil.isBankGroup()){ %>
	<!-- 業者代號 查詢 -->
	<div id="findGroupDiv" style="display: none;">
	
		<div id="queryGroupDiv">
		<table>
			<tr>
				<th>業者代號</th>
				<td><input id="qryGroup.groupNo" type="text" size="12" maxlength="12" /> </td>
			</tr>
			<tr>
				<th>名稱</th>
				<td><input id="qryGroup.groupName" type="text" size="20" /></td>
			</tr>
			<tr>
				<td colspan="2" class="queryFunction">
					<input type="button" value="查詢" id="doAjaxQueryGroupsBtn"/>
					<input type="button" value="離開" id="doAjaxCloseGroupsBtn"/>
				</td>
			</tr>
		</table>
		</div>
		<div id="queryGroupResultDiv" style="display: none;">
		</div>
	
	</div>
	
	<div id="queryGroupHiddenFormDiv" style="display: none; ">
		<stripes:form id="queryGroupHiddenFrom" beanclass="com.feib.soeasy.action.Soez5007ActionBean" 
			method="post" onsubmit="javascript: return false;">
			<stripes:hidden id="hidden.qryGroup.groupName" name="qryGroup.groupName"/>
			<stripes:hidden id="hidden.qryGroup.groupNo" name="qryGroup.groupNo"/>
		
			<stripes:hidden id="hidden.queryGroupResult.pageNumber" name="queryGroupResult.pageNumber" />			
			<input type="hidden" id="method2" name="doAjaxQueryGroups"/>
		</stripes:form>
	</div>
	
	<div id="groupNochangedHiddenFromDiv" style="display: none; ">
		<stripes:form id="groupNochangedHiddenFrom" beanclass="com.feib.soeasy.action.Soez5007ActionBean" 
			method="post" onsubmit="javascript: return false;">
			<stripes:hidden id="hidden.qryGroup.groupNo1" name="qryGroup.groupNo"/>
			<input type="hidden" id="method3" name="doAjaxGroupNoChange"/>
		</stripes:form>
	</div>
	
	<%} %>
		
	<!-- Message -->
	<div id="ajaxErrorMessageDiv" style="display: none;"></div>
	
	<!-- printDiv -->
	<div id="ajaxQueryPrintDiv" style="display: none;"></div>

	<iframe id="myIFrm" src="" style="display:none; visibility: hidden;"></iframe>
</div>
</body>
</html>